using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Entities.Auditing;
using System.ComponentModel.DataAnnotations;

namespace Sunlit.House.Seconds.Dto
{
    [AutoMap(typeof(SecondHand))]
    public class SecondHandDto: AuditedEntityDto<long>
    {
        /// <summary>
        /// 标题
        /// </summary>
        [StringLength(256)]
        [Required]
        public string Title { get; set; }
        /// <summary>
        /// 价格 万元
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 建筑面积 ㎡
        /// </summary>
        public decimal Area { get; set; }
        /// <summary>
        /// 户型
        /// </summary>
        [StringLength(32)]
        public string Layout { get; set; }
        /// <summary>
        /// 共x层
        /// </summary>
        [StringLength(32)]
        public string TotalLayer { get; set; }
        /// <summary>
        /// 楼层
        /// </summary>
        [StringLength(32)]
        public string Layer { get; set; }
        /// <summary>
        /// 装修类型
        /// </summary>
        [StringLength(32)]
        public string FitUp { get; set; }
        /// <summary>
        /// 产权年限
        /// </summary>
        public int AgeLimit { get; set; }
        /// <summary>
        /// 年代，竣工日期
        /// </summary>
        [StringLength(32)]
        public string CompleteDate { get; set; }
        /// <summary>
        /// 核心卖点
        /// </summary>
        public string SellPoint { get; set; }
        /// <summary>
        /// 业主心态
        /// </summary>
        public string Mentality { get; set; }

        public long? VillageId { get; set; }
        /// <summary>
        /// 小区名称
        /// </summary>
        public string VillageName { get; set; }

        public int? RegionId { get; set; }
        /// <summary>
        /// 首页推荐
        /// </summary>
        public bool ShowOnHome { get; set; }
        /// <summary>
        /// 幻灯片显示
        /// </summary>
        public bool InSlider { get; set; }
        /// <summary>
        /// 地区名称
        /// </summary>
        public string RegionName { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>
        [StringLength(256)]
        public string Address { get; set; }
        public string RegionFullName { get; set; }
        public string CoverImageUrl { get; set; }
        public ICollection<SecondHandImageDto> SecondHandImages { get; set; }
        /// <summary>
        /// 二手房详情
        /// </summary>
        public string Content { get; set; }

    }
}
